export const routes = [
  {
    path: "/user/login",
    name: "login",
    meta: {
      title: "登录",
    },
    component: () => import("../view/Login.vue"),
  },
  {
    path: "/order/detail/:id",
    meta: {
      title: "工单详情",
    },
    component: () => import("../view/order/OrderDetail.vue"),
  },
  {
    path: "/user/register",
    name: "register",
    meta: {
      title: "注册",
    },
    component: () => import("../view/Register.vue"),
  },
  {
    path: "/home",
    name: "主页",
    meta: {
      title: "主页",
    },
    component: () => import("../view/Home.vue"),
  },
  {
    path: "/material",
    name: "物料",
    meta: {
      title: "物料",
    },
    component: () => import("../view/MaterialSelection.vue"),
  },
  {
    path: "/order/list",
    meta: {
      title: "工单管理",
    },
    component: () => import("../view/Index.vue"),
  },
  {
    path: "/order/create",
    meta: {
      title: "创建工单",
    },
    component: () => import("../view/order/OrderCreate.vue"),
  }
];
